package cn.fjsay.java.demo3;

public class University {
    void enterRule(Student student){
        //进入规则
        double t=student.getTotalScore();


    if(t>=500){
        System.out.println(student.getName()+"考了"+ student.getTotalScore()+"达到了500分，录取！");
    }else{
        System.out.println(student.getName()+"考了"+ student.getTotalScore()+"没有达到了500分，不录取！");
    } }
}
